Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new completion context after previous token #1239

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

msujew
Copy link
Member

@msujew msujew commented Oct 24, 2023

Closes #1216

The new completion context uses the previous AST node to compute the completion that should immediately follow the previous element. Automatic testing for this is quite difficult, since it requires a custom scope provider. But the issue mentioned above contains a manual reproduction instruction that can be used to confirm that this fix is effective.

@msujew msujew added the completion Completion related issue label Oct 24, 2023
@msujew msujew added this to the v2.1.0 milestone Oct 24, 2023
@cdietrich
Copy link
Contributor

thx for the fix. will downport to our langium 1x prod env 2morrow.

@cdietrich
Copy link
Contributor

Can confirm that the patch also works in our actual DSL

Copy link
Contributor

@insafuhrmann insafuhrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @msujew, works in my test as well.

@msujew msujew merged commit a522a89 into main Oct 26, 2023
3 checks passed
@msujew msujew deleted the msujew/fix-1216 branch October 26, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completion Completion related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong AST hierarchy on completion
3 participants